<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>商家管理</title>
<!--    <link rel="stylesheet" type="text/html" th:href="@{/css/shopCss.css}">-->
</head>


<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" th:href="@{/layui/css/layui.css}">
<script type="text/javascript" th:src="@{/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/js/shop.js}"></script>

<body>
<div style="width: 100%;text-align: center;margin-top: 30px">
    <h1>商家管理</h1>
</div>
<!--<div class="layui-form-item">-->
<!--<form class="layui-form" action="">-->
    <div class="site-demo-button" id="layerDemo" style="margin-left: 40px;">
        <table style="margin-left: 50px;margin-bottom: 1%;margin-top: 30px">
            <tr>

                <td><input class="layui-input" type="text" name="name" id="shopName" placeholder="请输入商家名"></td>
                <td>&nbsp&nbsp&nbsp&nbsp</td>
                <td>&nbsp&nbsp&nbsp&nbsp</td>
                <td >
                    <div class="layui-input-inline" >
    <!--                    <label class="layui-form-label">搜索选择框</label>-->
                        <select id="shopStatus" style="height: 37px;width: 100px">
                            <option value=" ">搜索状态</option>
                            <option value="3">启用</option>
                            <option value="4">禁用</option>
                            <option value="5">已删除</option>
                            <option value="0">待审核</option>
                        </select>
                    </div>
                </td>
                <td>
                    <button style="margin-left: 30px" class="layui-btn" data-type="reload">查询</button>
                </td>
                <td>&nbsp&nbsp&nbsp&nbsp</td>
                <td>&nbsp&nbsp&nbsp&nbsp</td>
                <td>
    <!--                <button data-method="offset" data-type="auto" class="layui-btn layui-btn-normal">新增商户</button>-->
                </td>
            </tr>
        </table>
    </div>
<!--</form>-->
<!--    表格数据，通过js渲染得到显示数据 -->
<table class="layui-table" id="table_shop_list" lay-filter="admin"></table>

<images style="height: 600px;width: 600px" th:src="@{/imgs/yyzz.jpg}"></images>

<script type="text/html" id="barDemo">
    {{# if(d.status=='4'){}}
    <a class="layui-btn layui-btn-xs" lay-event="start">启用</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# } else if(d.status=='3'){}}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="forbidden">禁用</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# } else if(d.status=='0'){}}
    <a class="layui-btn layui-btn-warm layui-btn-xs" data-method="offset" data-type="auto" lay-event="pass">审核</a>
    {{# } else if(d.status=='1'){}}
    <a class="layui-btn layui-btn-xs" lay-event="start">启用</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# } else { }}
    {{# } }}
</script>



</body>
</html>
